package com.he.hsdyc.designmodule.state;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class BookState implements State {

    @Override
    public String getStateDescription() {
        return"当前为预定状态";
    }

    @Override
    public void Book(Room room) {
        log.info("当前已经为预定状态");
    }

    @Override
    public void checkin(Room room) {
        room.setState(new CheckinState());
    }

    @Override
    public void unBook(Room room) {
        room.setState(new FreeState());
    }

    @Override
    public void checkout(Room room) {
        log.info("预定状态无法退房");
    }
}
